package com.tjbank.cssys.repository;

import com.tjbank.cssys.domain.CkOutsourcingCompany;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

@Repository
public interface CkOutsourcingCompanyMapper {
    int deleteByPrimaryKey(Long id);

    int insert(CkOutsourcingCompany record);

    int insertSelective(CkOutsourcingCompany record);

    CkOutsourcingCompany selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(CkOutsourcingCompany record);

    @Transactional(propagation = Propagation.REQUIRED, rollbackFor = RuntimeException.class)
    int updateByPrimaryKey(CkOutsourcingCompany record);

    List<CkOutsourcingCompany> getOutsourcingCompanyList(Map<String, Object> params);

    List<Map<String, Object>> getOutCompanyPowerValue(Map<String, Object> params);

    Map<String, String> getOutCompanyByName(String companyName);

    List<Map<String, String>> getAllOutComapnyBycaseType(Map<String, String>map);

    Map<String,String> getCardNumber(String cardNumber);

    List<Map<String, Object>> getCompanyDetails(Integer id);
}